/**
 * 
 */
package com.shequan.pbinfo.service.impl;

import java.util.List;

import com.shequan.common.bean.ResultDataStruct;
import com.shequan.pbinfo.bean.pojo.School;
import com.shequan.pbinfo.dao.SchoolDAO;
import com.shequan.pbinfo.service.SchoolService;

/**
 * <P>
 * Copyright 2012.
 * </p>
 * <P>
 * All Rights Reserved.
 * </p>
 * @author Administrator
 * @version 1.0, 2012-3-12
 * @see com.shequan.pbinfo.service.impl.SchoolServiceImpl 
 * @since 1.0
 */
public class SchoolServiceImpl implements SchoolService {
	private SchoolDAO schoolDao;

	public void setSchoolDao(SchoolDAO schoolDao) {
		this.schoolDao = schoolDao;
	}

	/* (non-Javadoc)
	 * @see com.shequan.pbinfo.service.SchoolService#querySchoolInfo()
	 */
	public ResultDataStruct<List<School>> querySchoolInfo() {
		ResultDataStruct<List<School>> rds = new ResultDataStruct<List<School>>();
		List<School> schools=schoolDao.selectAll();
		rds.setData(schools);
		rds.setBusiSuccess(true);
		rds.setSuccess(true);
		return rds;
	}
}
